package com.jy.oms.framework.asyn.task.cluster.model;

import java.io.Serializable;

/**
 * event
 *
 * @author liuquan
 */
public class WorkNodeEvent implements Serializable {

    private boolean registry;

    private String nodeIp;

    private Integer nodeNum;

    public WorkNodeEvent() {
    }

    public WorkNodeEvent(boolean registry, String nodeIp, Integer nodeNum) {
        this.registry = registry;
        this.nodeIp = nodeIp;
        this.nodeNum = nodeNum;
    }

    public String getNodeIp() {
        return nodeIp;
    }

    public WorkNodeEvent setNodeIp(String nodeIp) {
        this.nodeIp = nodeIp;
        return this;
    }

    public Integer getNodeNum() {
        return nodeNum;
    }

    public WorkNodeEvent setNodeNum(Integer nodeNum) {
        this.nodeNum = nodeNum;
        return this;
    }

    public boolean isRegistry() {
        return registry;
    }

    public WorkNodeEvent setRegistry(boolean registry) {
        this.registry = registry;
        return this;
    }
}
